import React from 'react';
import * as Icons from "@icon-park/react"
import {IIconBase} from "@icon-park/react/lib/runtime";

const IconPark: React.FC<{ name: string, className?: string; } & IIconBase> = ({name, size = 15, className}) => {
    if (!name) return

    return React.createElement(Icons[name], {size, className});
};

export default React.memo(IconPark);
